it.
- typing in 'ana' displays the word, but without the 'aña' sequence
highlighted. (other returned strings that do contain 'ana' are
properly highlighted).
- firebug tells me the query string sent
ishttp://localhost/alabern/autocomplete/prov.php?q=a%C3%B1alimit=1000;...
I was able to solve
to decode the incoming string ie
q=Östman but nothing happens? Do I need to encode the returned
string as well?
Any thoughts are greatly appreciated!
Christer
I'd like to bump this up. I'm trying to implement a dynamic form, and
I need to query for words containing (in this particular case) ñ
to server in query string.
If I use $.get, like this
$.get(queryfile,{url:url,num:num},function(output){
...
});
the url is encoded as it is sent. BUT if I use
$.ajax({
type:GET,
url:queryfile,
data:url=+url,num=+num,
success:function(output){
}
})
the url as it is sent is not encoded.
Am
' displays the word, but without the 'aña' sequence
highlighted. (other returned strings that do contain 'ana' are
properly highlighted).
- firebug tells me the query string sent
ishttp://localhost/alabern/autocomplete/prov.php?q=a%C3%B1alimit=1000;...
I was able to solve this simply
On 6/3/09 11:55 PM, Gustavo Salomé gustavon...@gmail.com wrote:
No way you can do this unless you do have 'switch' that converts all
elements to its respective non-utf8 code.
how is the search string encoded in the q parameter sent to the backend?
whatever conversion is needed, isn't
like this:
---
$('#selector').load(link, { special: var, str: string, existing:
existing_str }, rebind);
---
'link' would be the example URL above
'special' is the specific POST variable the CP needs to let the query
through
'str' 'existing' are for my module
'rebind' is the callback function
++;
// Replace the =? sequence both in the query
string and the data
if ( s.data )
s.data = s.data.replace(jsre, = +
jsonp);
s.url = s.url.replace(jsre, = + jsonp);
...
But I see no way to prevent that from happening
(jsre)) ) {
jsonp = jsonp + jsc++;
// Replace the =? sequence both in the query
string and the data
if ( s.data )
s.data = s.data.replace(jsre, = +
jsonp);
s.url
this conversion/matching.
On Jun 4, 5:51 am, Tom Worster f...@thefsb.org wrote:
On 6/3/09 11:55 PM, Gustavo Salomé gustavon...@gmail.com wrote:
No way you can do this unless you do have 'switch' that converts all
elements to its respective non-utf8 code.
how is the search string encoded
You were correct.
I discovered that javascript was expanding the json string into an
object and when I packed the object back into another encoded string
using $.toJSON(item) (an available plugin) it all worked as
expected.
I've been working long crazy hours, but I could swear that before
10 matches
Mail list logo